import React, { useContext } from 'react'
import { ThemeContext } from './index'

const ThemeButton: React.FC = () => {
  const theme = useContext(ThemeContext)
  const style = { color: theme.fore, background: theme.background }
  return (
    <>
      <button style={style}>theme button</button>
    </>
  )
}

export default ThemeButton
